import request from '@/utils/request'
export function fetchList(params) {
  return request({
    url:'/admin/solution/list',
    method:'get',
    params:params
  })
}
export function createSolution(data) {
  return request({
    url:'/admin/solution/create',
    method:'post',
    data:data
  })
}
export function updateStatus(id,params) {
  return request({
    url:'/admin/solution/update/status/'+id,
    method:'post',
    params:params
  })
}


export function deleteSolution(id) {
  return request({
    url:'/admin/solution/delete/'+id,
    method:'post',
  })
}


export function updateSolution(id,subjectId,data) {
  return request({
    url:'/admin/solution/update/'+id+"/"+subjectId,
    method:'post',
    data:data
  })
}

